package cn.xfdzx.android.apps.shop.model;


import java.util.Map;

import cn.xfdzx.android.apps.shop.bean.BluePrintContentBean;
import cn.xfdzx.android.apps.shop.bean.CarCountBeen;
import cn.xfdzx.android.apps.shop.bean.LogininfoBean;
import cn.xfdzx.android.apps.shop.bean.VersionInfoBean;
import cn.xfdzx.android.apps.shop.contract.CarNumContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class CarNumModel implements CarNumContract.Model {

    @Override
    public Flowable<VersionInfoBean> getVersionInfo() {
        return RetrofitClient.getInstance().getApi().getVersionInfo();
    }

    @Override
    public Flowable<VersionInfoBean> getEquipmentNumber(Map<String, Object> map) {
        return RetrofitClient.getInstance().getApi().getEquipmentNumber(map);
    }

    @Override
    public Flowable<BluePrintContentBean> getPrintingContent(String order_id) {
        return RetrofitClient.getInstance().getApi().getPrintingContent(order_id);
    }

    @Override
    public Flowable<CarCountBeen> carNum(String index_status, String store_id) {
        return RetrofitClient.getInstance().getApi().cartCount("1", index_status, store_id);
    }

    @Override
    public Flowable<LogininfoBean> getLiveImLogin(String id,String type) {
        return RetrofitClient.getInstance().getApi().getLiveImLogin(id,type);
    }
}
